package com.yzf.demo.demo.io;

import java.io.FileInputStream;

/**
 * Created by 于占峰 on 2020/4/5/005.
 */
public class ReadDemo {


    public static void main(String[] args) {
        try {
            FileInputStream fileInputStream = new FileInputStream("G:/123.flv");
            int i = fileInputStream.read(); //读取指定目录的字节 ,如果read方法没有输入,会阻塞
            System.out.println((char) i);
            i = fileInputStream.read(); //读取指定目录的字节 ,如果read方法没有输入,会阻塞
            System.out.println((char) i);
        } catch (Exception e) {

        }
    }
}
